package com.zhuss.bean.unit.core.auth;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.zhuss.common.AbstractVo;
import com.zhuss.enums.IsEnum;



public class ListUserMenuTreeVo extends AbstractVo implements Comparable<ListUserMenuTreeVo> {

	private Long menuId;
	
	private String name;
	
	private String extName;
	
	private String icon;
	
	private String imgUrl;
	
	private String disImgUrl;
	
	private Integer isDis = IsEnum.是.key();
	
	private String route;
	
	private String extRoute;
	
	private String tag;
	
	private Integer sort;
    
    private List<ListUserMenuTreeVo> children = new ArrayList<>();

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getExtName() {
		return extName;
	}
	
	public void setExtName(String extName) {
		this.extName = extName;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	public String getImgUrl() {
		return imgUrl;
	}
	
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	
	public String getDisImgUrl() {
		return disImgUrl;
	}
	
	public void setDisImgUrl(String disImgUrl) {
		this.disImgUrl = disImgUrl;
	}
	
	public Integer getIsDis() {
		return isDis;
	}
	
	public void setIsDis(Integer isDis) {
		this.isDis = isDis;
	}

	public String getRoute() {
		return route;
	}

	public void setRoute(String route) {
		this.route = route;
	}
	
	public String getExtRoute() {
		return extRoute;
	}
	
	public void setExtRoute(String extRoute) {
		this.extRoute = extRoute;
	}
	
	public String getTag() {
		return tag;
	}
	
	public void setTag(String tag) {
		this.tag = tag;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public List<ListUserMenuTreeVo> getChildren() {
		Collections.sort(children);
		return children;
	}

	public void setChildren(List<ListUserMenuTreeVo> children) {
		this.children = children;
	}

	@Override
	public int compareTo(ListUserMenuTreeVo o) {
		return this.sort - o.getSort();
	}
	
	
    
}